
import { clone, lStorage } from '@/assets/utils'
import * as TYPES from '../action-type'

import api from '@/api'


let initialState = {
    moveDetail: null
}
// 个人登录信息 
export default function detailReducer(initial = initialState, action) {
    let state = clone(initial)

    switch (action.type) {
        case TYPES.QUERY_DETAIL:
            if (action.url === 'bookDetailUrl') {
                state.moveDetail = action.bookDetail;
            } else {
                state.moveDetail = action.moveDetail;
            }
            break;

    }

    return { ...state }
}